package com.zenith.zongheng.demo.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author tangzx
 * @since 2022-02-07
 */
@Data
@EqualsAndHashCode(callSuper = false)
@SuppressWarnings("serial")
@ApiModel(value="LeaveInfo对象", description="")
public class LeaveInfo implements Serializable {

    private static final long serialVersionUID = 1L;


    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "关联系统sys_unituser表")
    private Long unitUserId;

    @ApiModelProperty(value = "申请人")
    private String userName;

    @ApiModelProperty(value = "申请单位")
    private String deptName;

    @ApiModelProperty(value = "职务")
    private String userRole;

    @ApiModelProperty(value = "请假人性别")
    private String gender;

    @ApiModelProperty(value = "请假人年龄")
    private Integer age;

    @ApiModelProperty(value = "请假类型：婚假；年休；产假，等")
    private Integer leaveTypeId;

    @ApiModelProperty(value = "请假开始时间")
    private Date startTime;

    @ApiModelProperty(value = "请假结束时间")
    private Date endTime;

    @ApiModelProperty(value = "总的请假天数")
    private Integer totalDay;

    @ApiModelProperty(value = "年内休假情况")
    private String leaveDetail;

    @ApiModelProperty(value = "主持工作领导")
    private String leaderId;

    @ApiModelProperty(value = "主持工作领导职务")
    private String leaderPostId;

    @ApiModelProperty(value = "请假事由")
    private String leaveReason;

    @ApiModelProperty(value = "审批意见: 0:暂存；1:审批中；2：同意；3：不同意；4：拟同意")
    private Integer reviewComment;

    @ApiModelProperty(value = "审核人")
    private Integer reviewId;

    private Date createTime;



    public static final String ID = "id";
    public static final String UNIT_USER_ID = "unit_user_id";
    public static final String USER_NAME = "user_name";
    public static final String DEPT_NAME = "dept_name";
    public static final String USER_ROLE = "user_role";
    public static final String GENDER = "gender";
    public static final String AGE = "age";
    public static final String LEAVE_TYPE_ID = "leave_type_id";
    public static final String START_TIME = "start_time";
    public static final String END_TIME = "end_time";
    public static final String TOTAL_DAY = "total_day";
    public static final String LEAVE_DETAIL = "leave_detail";
    public static final String LEADER_ID = "leader_id";
    public static final String LEADER_POST_ID = "leader_post_id";
    public static final String LEAVE_REASON = "leave_reason";
    public static final String REVIEW_COMMENT = "review_comment";
    public static final String REVIEW_ID = "review_id";
    public static final String CREATE_TIME = "create_time";
}
